import java.util.Random;
public class RandGen {
	private static Random random=new Random();
	public static double uniform(double min, double max) {
		return ( random.nextDouble() * (max - min) ) + min;
	}
	public static int nextInt(){
		return random.nextInt();
	}
	public static int nextInt(int i){
		return random.nextInt(i);
	}
	public static double nextDouble(){
		return random.nextDouble();
	}
	public static void main(String args[]){
		System.out.println(uniform(-1.0,1.0));
	}
}